<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width;inital-scale=1.0" name="viewport" >
<title>Insert title here</title>
<script type="text/javascript">

function send1() {
	var code=document.getElementById("tt").value;
	if(code=="fdfsdfggf")
		window.location.href=="${pageContext.request.contextPath }/user/register.action?id=2";
	else{
		alert("邀请码错误");
		window.navigate("register.jsp"); 
	}
}



</script>
<style type="text/css">

div{
text-align: center;
margin-top: 200px;
font-size: 30px;
}

</style>

</head>
<body>
<div>
  <label> 请输入邀请码：</label><input id="tt" type="text" ><input type="button" onclick="send1();" value="发送">
</div>




</body>

</html>